<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Vue3 demo</title>
  <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
</head>
<body>
  <div style="text-align: center;" id="Application">
    <h1>{{ count }}</h1>
    <button v-on:click="clickButton">点击</button>
  </div>
  
  <script>
    const { createApp, ref } = Vue
    let config = {
      setup() {
        let count = ref(0)
        const clickButton = () => {
          count.value++
        }
        return {
          count,
          clickButton
        }
      }
    }
    let app = createApp(config)
    app.mount('#Application')
  </script>
</body>
</html>